package com.tqw.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tqw.pojo.Favorites;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @description: some desc
 * @author: Administrator
 * @date: 2022/4/12 15:15
 */
@Mapper
public interface FavoriteMapper extends BaseMapper<Favorites> {

    @Select("select id from favorites where user_id=#{userId} and item_id=#{itemId}")
    Favorites findfavorites(Integer userId, Integer itemId);

}
